package gdma.hqdes.service;

import gdma.hqdes.bean.HqdProject;

import javax.annotation.Nullable;
import java.util.Date;
import java.util.List;

public interface ProjectService {

    HqdProject getProject(long id);

    HqdProject getProject(int year, int scope);

    List<HqdProject> getProjects(int year, int scope0);

    List<HqdProject> getActiveProjects(Date current, Integer scope0);

    List<HqdProject> getProjectsByYear(int year);

    List<HqdProject> listProjects(@Nullable Integer year0, @Nullable Integer year1, @Nullable Integer scope, @Nullable Integer scope0, @Nullable String name);

    HqdProject saveProject(HqdProject project);

    float updateProjectProgress(long id);

}
